<?php
include_once('../../src/classes/class.mysql.php');
    
    $comtec_id_configman = $_GET['id'];
   
    $db = new MySQL();
    
    $texto = "SELECT configman_name,
		     maintainment_period,
		     maintainment_period_date,
		     maintainment_day
		     FROM configman
                     WHERE comtec_id_configman=".$comtec_id_configman;
    
    $result = $db->fetch_array($db->query($texto));  
   
    $configman_name=$result['configman_name'];
    $maintainment_period = $result['maintainment_period'];
    $maintainment_period_date = $result['maintainment_period_date'];
    $maintainment_day = $result['maintainment_day'];
 
?>
<fieldset class="curved">
 <legend>Configuracion</legend>
  <table style="margin: 10px auto; border-spacing: 10px;">
   <tr>
    <td width="200">Nombre</td>
    <td><input type="text" size="40" DISABLED value="<?=$configman_name;?>"/></td>
   </tr>
   <tr> 
    <td width="200">Periodo Mant.</td>
    <td><input type="text" size="40" DISABLED value="<?=$maintainment_period;?>"/> (d&iacute;as) </td>
   </tr>  
   <tr>
    <td width="200">Detalle Mant.</td>
    <td><textarea rows="3" cols="35" readonly="readonly" style="resize:none" ><?=$maintainment_period_date;?></textarea></td>
    </tr>
    <tr> 
    <td width="200">Día del mes Mant.</td>
    <td><input type="text" size="40" DISABLED value="<?=$maintainment_day;?>"/></td>
   </tr>
   <tr><td><input type="button" value="Regresar" onclick="javascript:loadConfigmans();" /></td></tr>
   </table>         
        
   </fieldset>
